package com.b.repository;

import com.b.domain.Product;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ProductRepository extends ElasticsearchRepository<Product, Integer> {
    SearchPage<Product> findProductByTitleLikeAndCategoryIdAndDescriptionLike(String title, Integer categoryId, String description, PageRequest pageRequest);

    SearchPage<Product> findProductByTitleLikeAndDescriptionLike(String title, String title1, PageRequest attr0);
}
